<?php 

header("Content-type: text/html; charset=utf-8"); 


/**
* server 父类
*/
class Server 
{
	
	function __construct()
	{
		# code...
	}


	
	//在页面上返回json格式数据
	function showJsonData($data){

		header('Content-Type: application/json; charset=utf-8');
		
		echo json_encode($data);		

	}


}

